/* Новые переменные */
:root {
  --bg: hsl(210, 15%, 98%); /* Общий фон */
  --card-bg: #ffffff; /* Фон для карточек */
  --text-color: hsl(210, 15%, 15%); /* Основной цвет текста */
  --muted-text: hsl(210, 8%, 55%); /* Цвет приглушенного текста */
  --primary-color: hsl(205, 100%, 40%); /* Основной акцентный цвет */
  --primary-light: #cfe5ff; /* Светлый оттенок основного цвета для тегов */
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Стандартная тень */
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1); /* Большая тень для ховера */
  --border-radius-sm: 8px; /* Малый радиус скругления */
  --border-radius-lg: 12px; /* Большой радиус скругления */
  --border-color: #eaf0fa; /* Цвет границы */
}

* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
}
body {
  font-family: "Inter", "Roboto", sans-serif;
  background-color: var(--bg);
  color: var(--text-color);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}
.logo {
  flex-shrink: 0; /* запрет сжиматься */
  white-space: nowrap; /* текст не переносится */
  transform-origin: left center; /* масштаб идёт от левого края */
}

@media (max-width: 500px) {
  .logo {
    transform: scale(0.8); /* уменьшается целиком */
  }
}

@media (max-width: 360px) {
  .logo {
    transform: scale(0.7);
  }
}
.event-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: url("event-button2.png") center/cover no-repeat; /* оранжевый градиент */
  color: #fff;
  text-decoration: none;
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 10px 20px rgba(30, 144, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 20px auto;
  width: auto;
  max-width: 100%;
}
.event-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(30, 144, 255, 0.4);
}
.event-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
}
.event-content h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.event-content p {
  margin: 4px 0 0;
  font-size: 14px;
  opacity: 0.9;
}
.event-icon {
  color: #ffffff;
  font-size: 18px;
  font-weight: 860;
  margin-right: 0px;
  text-shadow: 1px 1px 2px rgb(0, 0, 0);
}
.event-time {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 1px 1px 2px black; /* обводка */
}

.event-text {
  color: #0080ff;
  font-size: 14px;
  font-weight: 900;
  text-shadow: 1px 1px 1px black; /* обводка */
}

header {
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(0px) blur(1px);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: center; /* центрируем всю строку */
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .topbar {
    flex-direction: column; /* логотип сверху */
    align-items: center; /* растягиваем на всю ширину */
  }

  .searchbar {
    width: auto; /* чтобы не растягивалось */
    margin-left: 0; /* остаётся справа */
  }

  .searchbar input {
    flex: none; /* поиск растягивается */
    min-width: 200px; /* убираем ограничение */
  }

  .searchbar select {
    width: 40%; /* селект компактнее */
  }
}

/* Базовый (на ПК) */
.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.5px;
  font-size: 32px; /* 🔼 сделай больше шрифт */
}

.logo-badge {
  width: 64px; /* 🔼 круг больше */
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand);
  box-shadow: inset 0 0 0 3px var(--brand);
  font-size: 24px; /* 🔼 текст внутри круга больше */
  font-weight: 900;
}

@media (max-width: 600px) {
  .logo {
    font-size: 42px;
    margin-top: 20px;
    margin-left: 0; /* ✅ убрали отрицательный отступ */
    text-align: center; /* чтобы было по центру, если надо */
  }
  .logo-badge {
    width: 80px; /* 🔼 сам круг ещё больше */
    height: 80px;
    font-size: 30px; /* 🔼 буквы внутри круга больше */
  }
}

.searchbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0; /* убираем все отступы */
  flex: 0 0 auto; /* важное: блок занимает только столько места, сколько нужно */
}

.input {
  appearance: none;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dbe7ff;
  flex: none;
  min-width: 200px;
  background: #fff;
  box-shadow: var(--shadow);
}
.select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dbe7ff;
  background: #fff;
  box-shadow: var(--shadow);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(30, 144, 255, 0.25);
}
.btn:hover {
  background: var(--brand-600);
}
.btn-ghost {
  background: #fff;
  color: var(--brand);
  box-shadow: inset 0 0 0 2px var(--brand-50), var(--shadow);
}

main {
  padding: 18px 0 64px;
}

.hero {
  text-align: center;
  padding: 26px 0 10px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(26px, 2.6vw + 12px, 44px);
  letter-spacing: 0.2px;
}
.hero p {
  margin: 0.6rem auto 0;
  max-width: 700px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 560px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius-2xl);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid #eaf0fa;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(3, 27, 78, 0.1);
}

.row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(145deg, #fff, #f2f7ff);
  border: 1px solid #e3edff;
  box-shadow: 0 8px 20px rgba(3, 27, 78, 0.06);
  font-size: 32px;
}
.icon img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* заставляем заполнить квадрат без искажений */
}

.title {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-size: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--brand-50);
  color: var(--brand);
  border: 1px solid #cfe5ff;
}

.card-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}
a.btn,
button.btn {
  text-decoration: none;
}

/* Detail page */
.detail {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .detail {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
}
.panel {
  background: #fff;
  border: 1px solid #eaf0fa;
  border-radius: var(--radius-2xl);
  padding: 18px;
  box-shadow: var(--shadow);
}
.panel h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.dl {
  display: grid;
  gap: 10px;
}
.dl a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}
.dl .primary {
  background: var(--brand);
  color: #fff;
}
.dl .secondary {
  background: #fff;
  color: var(--brand);
  box-shadow: inset 0 0 0 2px var(--brand-50), var(--shadow);
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--muted);
}
.breadcrumbs a {
  color: var(--brand-600);
  text-decoration: none;
}

footer {
  width: 100%;
  border-top: 1px solid #e8eef9;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}

/* Focus ring for a11y */
:is(a, button, input, select):focus {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.event-timeline {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
  background: #fff8e1; /* мягкий светлый фон */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.event-timeline h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #ff6600;
}

.timeline {
  position: relative;
  padding-left: 60px; /* пространство для точек */
  padding-top: 20px;
  padding-bottom: 20px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(45deg, #ff9900, #ffcc00);
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.timeline-line {
  position: absolute;
  left: 13px; /* центр линии под точкой */
  top: 28px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #ff9900, #ffcc00);
  z-index: 0;
}

.timeline-line.last {
  display: none;
}

.timeline-content {
  margin-left: 20px; /* отступ от линии и точки */
  background: #fff3d6; /* чуть контрастнее фона коробки */
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.timeline-date {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* Добавьте в style.css */
.glow-btn {
  position: relative;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff9a3c, #ff4e00);
  border: none;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 120, 0, 0.15);
  transition: transform 0.2s;
  overflow: hidden;
}

.glow-btn:active {
  transform: scale(0.97);
}

.glow-btn.active::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  border: 3px solid #ff9800;
  box-shadow: 0 0 24px 8px #ff9800;
  opacity: 1;
  animation: glow-fly-forward 0.7s cubic-bezier(0.4, 2, 0.3, 1) forwards;
  pointer-events: none;
  z-index: 2;
}

@keyframes glow-fly-forward {
  0% {
    opacity: 1;
    transform: scale(1) perspective(400px) translateZ(0px);
    filter: blur(0px);
  }
  60% {
    opacity: 0.7;
    transform: scale(1.5) perspective(400px) translateZ(40px);
    filter: blur(2px);
  }
  100% {
    opacity: 0;
    transform: scale(2) perspective(400px) translateZ(80px);
    filter: blur(6px);
  }
}

.sidebar-apps {
  position: fixed;
  top: 100px;
  right: 16px;
  width: 260px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(30, 144, 255, 0.08);
  padding: 18px 12px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Переезжает вниз уже при ширине <1000px */
@media (max-width: 1600px) {
  .sidebar-apps {
    position: static;
    width: 100%;
    margin: 24px 0;
    box-shadow: none;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    padding: 0;
    background: none;
  }
}

/* На очень маленьких экранах sidebar занимает всю ширину и уходит вниз */
@media (max-width: 600px) {
  .sidebar-apps {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    margin: 18px 0 0 0;
    padding: 0;
  }
}

.sidebar-app-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7fbff;
  border-radius: 14px;
  padding: 10px 8px;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.06);
  min-width: 220px;
}

.sidebar-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sidebar-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-app-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-app-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e90ff;
  margin-bottom: 2px;
}

.sidebar-app-studio {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.sidebar-app-stars {
  font-size: 14px;
  color: #ff9800;
  letter-spacing: 2px;
}

.slider-one {
  width: 420px;
  max-width: 100%;
  margin: 32px auto 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(30, 144, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px;
  position: relative;
  overflow: hidden; /* важно! */
  min-height: 220px; /* чтобы caption не налезал на фото */
}

.slider-img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
  opacity: 1;
  transition: opacity 0.7s, filter 0.7s;
  filter: brightness(1);
  position: relative;
  z-index: 2;
}

.slider-img.fade-out {
  opacity: 0;
  filter: brightness(0.7);
}

.slider-img.fade-in {
  opacity: 1;
  filter: brightness(1);
}

/* Контейнер для двух кнопок */
.event-buttons {
  display: flex;
  gap: 20px; /* расстояние между кнопками */
  justify-content: center; /* центрируем */
  flex-wrap: wrap; /* если мало места – переносим вниз */
}

/* Вторая кнопка (для тестеров) */
.tester-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: url("tester_banner.png") center/cover no-repeat,
    linear-gradient(135deg, #4caf50, #2e7d32); /* зелёный градиент для тестеров */
  color: #fff;
  text-decoration: none;
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 10px 20px rgba(46, 125, 50, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 20px auto;
  width: auto;
  max-width: 100%;
}

.tester-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(46, 125, 50, 0.4);
}

.event-btn,
.tester-btn {
  margin: 2; /* убираем автоматический отступ */
}

.event-btn,
.tester-btn {
  margin: 0; /* убираем всё */
}

.event-buttons {
  display: flex;
  justify-content: center; /* центрируем блок с кнопками */
  gap: 40px; /* расстояние между кнопками */
  margin: 20px auto; /* задаём общий отступ сверху/снизу */
}

.tester-login {
  max-width: 400px;
  margin: 40px auto;
  padding: 20px;
  background: #fff8e1;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.tester-login input {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.tester-login button {
  padding: 10px 16px;
  background: linear-gradient(45deg, #ff9900, #ffcc00);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
}
.tester-page {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background: #f0fff4;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tester-btn .event-icon {
  font-size: 30px; /* увеличиваем только у тестеров */
  font-style: e;
  color: white; /* если хочешь синим */
}

.tester-btn .event-text {
  font-size: 1.69rem;
  font-weight: 800;
  line-height: 2.5rem;
  color: #1479d1;
  text-transform: capitalize;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto,
    Helvetica Neue, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic,
    sans-serif;

  text-shadow: 0 0 4px #1479d1, 0 0 8px #1479d1, 0 0 16px #1479d1;
}

.gradient-text {
  background: linear-gradient(to right, #a5f3fc, #a7f3d0, #93c5fd);
  font-size: 1.45rem;
  font-weight: 800;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.4px #000000;
}

.link-block {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 16rem; /* md:h-96 ~ 384px */
  overflow: hidden;
  border-radius: 1rem;
  text-decoration: none;
  color: white;
}

.link-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.link-block:hover img {
  transform: scale(1.05);
}

.link-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s;
}

.link-block:hover::before {
  background: rgba(0, 0, 0, 0.6);
}

.link-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
}

.link-text .subtitle {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.link-block:hover .subtitle {
  opacity: 1;
}

.link-text {
  display: flex;
  flex-direction: column; /* текст сверху, subtitle снизу */
  align-items: center; /* по центру горизонтально */
  justify-content: center;
}

.link-text span:first-child {
  display: inline-flex; /* основной текст + стрелка */
  align-items: center;
  gap: 8px; /* расстояние между текстом и стрелкой */
}

.icon-arrow {
  width: 43px;
  height: 43px;
  fill: none; /* прозрачный фон */
  stroke: currentColor;
}

.subtitle {
  margin-top: 4px; /* немного отступ снизу основного текста */
  font-size: 14px;
  opacity: 0.8;
  transform: translateX(-15px); /* смещаем на 4px влево */
}

.link-text .subtitle {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  opacity: 0;
  transform: translateY(10px); /* чуть ниже */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.link-block:hover .subtitle {
  opacity: 1;
  transform: translateY(0); /* поднимается на место */
}

.hero-suncyn {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 30px 20px;
  background-color: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius-xl);
  margin-bottom: 20px;
}
.hero-suncyn h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-suncyn p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted-text);
  max-width: 600px;
}
.hero-suncyn-content {
  flex: 1;
}
.hero-suncyn-image {
  flex: 1;
  text-align: right;
}
.hero-suncyn-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-xl);
}
@media (max-width: 900px) {
  .hero-suncyn {
    flex-direction: column-reverse;
  }
}

.card {
  background: var(--card-bg);
  border-radius: var(--border-radius-xl);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.card .btn {
  background: var(--primary-color);
  color: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 600;
  box-shadow: none;
}
.card .btn-ghost {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  box-shadow: none;
}

/* ... (остальной CSS) */
/* Единый стиль для всех карточек и панелей */
.card,
.panel {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Обновлённые стили для страницы деталей */
.detail .panel {
  padding: 24px; /* Увеличил отступы для лучшей читаемости */
}

/* Обновлённый стиль иконки */
.icon {
  width: 64px;
  height: 64px;
  border-radius: 16px; /* Чуть менее скруглённые углы */
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--card-bg); /* Чистый белый фон */
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  font-size: 32px;
}
.icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Обновлённый стиль тегов */
.tag {
  font-size: 12px;
  border-radius: var(--border-radius-sm);
  padding: 6px 10px;
  background: var(--primary-light);
  color: var(--primary-color);
  border: 1px solid var(--primary-light); /* Единая цветовая гамма */
}

/* Упрощённый стиль кнопок загрузки */
.dl a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

/* Кнопка «Скачать APK» */
.dl .primary {
  /* ... (остальные стили) */
  background: var(--primary-color);
  color: #fff; /* Белый текст на синем фоне */
  border: 1px solid var(--primary-color);
  box-shadow: none;
}
.dl .primary:hover {
  background: hsl(205, 100%, 30%); /* Чуть темнее при наведении */
}

/* Кнопка «Назад» */
.dl .secondary {
  /* ... (остальные стили) */
  background: var(--card-bg); /* Белый фон */
  color: var(--text-color); /* Темный текст на белом фоне */
  border: 1px solid var(--border-color); /* Светлая рамка */
  box-shadow: none;
}
.dl .secondary:hover {
  background: var(--bg); /* Светло-серый фон при наведении */
}

/* Общая компоновка детальной страницы */
.detail {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .detail {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
}

/* Сайдбар */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}
.app-info {
  margin-top: 16px;
}
.app-info .title {
  font-size: 24px;
  margin-bottom: 8px;
}
.app-info .tags {
  justify-content: center;
}

/* Кнопки загрузки */
.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.download-buttons .btn {
  width: 100%;
}
.mod-notes {
  font-size: 12px;
  color: var(--muted-text);
  margin-top: 16px;
}

/* Основной контент */
.detail-content .section-title {
  margin: 24px 0 12px;
  font-size: 20px;
}
.detail-content .section-title:first-of-type {
  margin-top: 0;
}

/* Список особенностей и что нового */
.features-list,
.whatsnew-list {
  padding-left: 20px;
}
.features-list li,
.whatsnew-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Информация (мета-данные) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.info-item {
  display: flex;
  flex-direction: column;
}
.info-key {
  font-weight: 600;
  color: var(--text-color);
}
.info-value {
  color: var(--muted-text);
  font-size: 14px;
}
.disclaimer-card {
  margin-top: 24px;
}

/* Скриншоты */
.screenshots-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.screenshot-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}
/* Кнопка «Скачать APK» */
.dl .primary {
  /* ... (остальные стили) */
  background: var(--primary-color);
  color: #fff; /* Белый текст на синем фоне */
  border: 1px solid var(--primary-color);
  box-shadow: none;
}
.dl .primary:hover {
  background: hsl(205, 100%, 30%); /* Чуть темнее при наведении */
}

/* Кнопка «Назад» */
.dl .secondary {
  /* ... (остальные стили) */
  background: var(--card-bg); /* Белый фон */
  color: var(--text-color); /* Темный текст на белом фоне */
  border: 1px solid var(--border-color); /* Светлая рамка */
  box-shadow: none;
}
.dl .secondary:hover {
  background: var(--bg); /* Светло-серый фон при наведении */
}
/* Общие стили для кнопок загрузки */
.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Иконки внутри кнопок */
.download-btn-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Основная кнопка (синяя) */
.download-btn--primary {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.download-btn--primary:hover {
  background-color: hsl(205, 100%, 30%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Второстепенная кнопка (белая) */
.download-btn--secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.download-btn--secondary:hover {
  background-color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
.about-suncyn {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 60px 20px;
  background-color: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius-xl);
  margin-top: 20px; /* Отступ от предыдущего блока */
  margin-bottom: 20px;
}

.about-suncyn h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.about-suncyn p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-text);
}

.about-suncyn-content {
  flex: 1;
}

.about-suncyn-image {
  flex: 1;
  text-align: left;
}

.about-suncyn-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-xl);
}

/* Стили для адаптивности */
@media (max-width: 900px) {
  .about-suncyn {
    flex-direction: column; /* На маленьких экранах изображение будет снизу */
  }
}

/* Выделение текста */
.highlight-text {
  color: var(--primary-color);
}
/* Новая секция для статистики проекта */
.project-stats {
  margin-top: 20px; /* Отступ от предыдущего блока */
  margin-bottom: 20px;
}

.project-stats h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
  text-align: center;
}

.project-stats p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-text);
  margin-bottom: 2rem;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  background-color: var(--bg);
  border-radius: var(--border-radius-sm);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  color: var(--muted-text);
}
.kuzyabx {
  background: linear-gradient(135deg, #1162cb, #2575fc); /* плавный градиент */
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px; /* аккуратные закругленные углы */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* легкая тень */
}

.kuzyabx:hover {
  transform: translateY(-2px); /* плавный "подъем" при наведении */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.kuzyabx:active {
  transform: translateY(0);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.hero-kuzyabx {
  text-align: center;
  padding: 26px 0 10px;
}
.herokuzyabx h1 {
  margin: 0;
  font-size: clamp(26px, 2.6vw + 12px, 44px);
  letter-spacing: 0.2px;
}
.hero-kuzyabx p {
  margin: 0.6rem auto 0;
  max-width: 700px;
  color: var(--muted);
}
.event-btn{
  margin-bottom: 20px;
}
.full-width-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.full-width-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0); /* изначально прозрачный */
  transition: background 0.3s ease;
}

.full-width-section:hover .overlay {
  background: rgba(0, 0, 0, 0.4); /* затемнение при ховер */
}

.link-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.link-text span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 2rem;
  font-weight: bold;
}

.icon-arrow {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: currentColor;
}

.subtitle {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.full-width-section:hover .subtitle {
  opacity: 1;
  transform: translateY(0);
}
#testerLink .link-text {
  cursor: pointer;
}
/* Контейнер формы */
.tester-application {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Заголовок */
.tester-application h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

/* Поля формы */
#testerAppForm input,
#testerAppForm select,
#testerAppForm textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: 0.2s;
}

#testerAppForm input:focus,
#testerAppForm select:focus,
#testerAppForm textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Кнопка отправки */
#testerAppForm button {
  width: 100%;
  padding: 14px;
  background-color: #007bff;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

#testerAppForm button:hover {
  background-color: #0056b3;
  transform: scale(1.02);
}

/* JSON вывод */
#jsonOutput {
  font-family: monospace;
  font-size: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-radius: 8px;
}

/* Адаптив */
@media (max-width: 640px) {
  .tester-application {
    padding: 20px;
    margin: 20px;
  }
}
.event-btn {
  margin-right: 20px; /* отступ справа */
}

.tester-btn {
  margin-left: 5px; /* отступ слева */
}